#include "director.h"

#include <iostream>

using namespace std;

int main()
{
	EntryDialogDirector dialog;

	dialog.showDialog();
	cout<<endl;

	dialog.showDetail();
	cout<<endl;

	cout<<"After input some thing:"<<endl;
	dialog.m_entry->setText("grape");
	dialog.showDetail();
	cout<<endl;

	cout<<"After clear entry:"<<endl;
	dialog.m_entry->setText("");
	dialog.showDetail();
	cout<<endl;

	cout<<"After select one fruit:"<<endl;
	dialog.m_list->setSelectIndex(1);
	dialog.showDetail();
	cout<<endl;

	return 0;
}
